package cs304.p3.library.exceptions;

@SuppressWarnings("serial")
public class AddBookException extends AbstractLDBException {
	private String callNumber;
	public AddBookException(String callNumber, String msg) {
		super(msg);
		this.callNumber = callNumber;
	}
	
	@Override
	public String getErrorMessage() {
		return "Could not create book with call number " + callNumber;
	}
	
	@Override
	public String getErrorMessageTitle() {
		return "Add Book Failed";
	}
}
